FROM registry.cn-hangzhou.aliyuncs.com/duweibin/jdk:v1
ARG MODULE=market
ARG PROJECT_NAME=market
ARG PROJECT_HOME=/opt/$PROJECT_NAME
ARG MAIN_JAR=$PROJECT_NAME.jar

COPY ./script/* $PROJECT_HOME/script/
COPY ./$MODULE/src/main/resources/* $PROJECT_HOME/confs/
COPY ./$MODULE/target/*.jar $PROJECT_HOME/libs/


RUN chmod 755 $PROJECT_HOME/script/bootstrap.sh
RUN chmod 755 $PROJECT_HOME/script/build.sh
CMD ["sh", "-c", "/opt/wechat/script/build.sh"]